#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.59])
AC_INIT([simplecpp], [0.1])
AM_INIT_AUTOMAKE(simplecpp,1.0)
AC_CONFIG_SRCDIR([exam/PracticalSocket.h])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_CHECK_TYPES([ptrdiff_t])

# Checks for library functions.
AC_CHECK_FUNCS([gethostbyname gettimeofday inet_ntoa memset mkdir socket strcasecmp strerror strrchr])

#AC_CONFIG_FILES([exam/Makefile
#                 src/Makefile])
#AC_CONFIG_SUBDIRS([test
#                   thirdparty/gmock])
AC_OUTPUT(Makefile src/Makefile)
